<template>
  <div class="header">
    <a href="javascript:;">西安</a>
    <span class="search" @click="jumpTo">
      <i>请输入搜索关键词</i>
    </span>
    <a href="javascript:;" @click="toLogin">登陆</a>
  </div>
</template>

<script>
export default {
  name: "Header",

  data() {
    return {};
  },

  mounted() {},

  methods: {
    toLogin() {
      this.$router.push("/login");
    },
    jumpTo(){
      this.$router.push("/Search")
    }
  },
};
</script>

<style  scoped>
.header {
  height: 0.6rem;
  background: rgb(255, 98, 105);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.header > a {
  color: #fff;
}
.search {
  height: 0.4rem;
  background-color: #fff;
  width: 75%;
  display: inline-block;
  border-radius: 0.2rem;
  text-align: center;
}
.search i {
  color: rgb(211, 212, 214);
  line-height: 0.4rem;
}
</style>